package com.example.canal.event.listener.dbchange;

import com.example.canal.event.event.JobInstanceEvent;
import com.example.canal.event.listener.BaseDBChangeListenerSync;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/8/9 11:40
 */
@Component
@Slf4j
public class JobInstanceListener extends BaseDBChangeListenerSync<JobInstanceEvent> {

    @Override
    public void onInsert(List<String> data) {
        log.info("onInsert ");
        log.info("data:{} ",data);
    }

    @Override
    public void onDelete(List<String> data) {
        log.info("onDelete ");
        log.info("data:{} ",data);
    }

    @Override
    public void onUpdate(List<String> data,List<String> old) {
        log.info("onUpdate ");
        log.info("data:{} ",data,old);
    }
}
